/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __RF_H__
#define __RF_H__

/* Includes ------------------------------------------------------------------*/
#include "stm8s.h"
#include "define.h"

/* Exported types ------------------------------------------------------------*/
/* Exported constants --------------------------------------------------------*/
#define RF_PORT    (GPIOC)
#define RF_PINS    (GPIO_PIN_6)

typedef enum
{
    NORMAL,
    WAITING_FOR_RETURN_NORMAL,
    ENTER_LEARN,
    LEARN_START_PROCESS,
    WAITING_FOR_RETURN_LEARN_START,
    LEARN_PAUSE_PROCESS,
    WAITING_FOR_RETURN_LEARN_PAUSE,
    QUIT_LEARN
} eRfMode;

/* Exported macro ------------------------------------------------------------*/
/* Exported functions ------------------------------------------------------- */

void Rf_Init(void);
eRfMode Rf_GetMode( void );
void Rf_SetMode( eRfMode iMode );
void Rf_RunOne(void);

#endif /* __RF_H__ */

